﻿@model IEnumerable<MvcApplication2.Models.Thongtinsanpham>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            ThongtinspID
        </th>
        <th>
            SanphamID
        </th>
        <th>
            CPU
        </th>
        <th>
            RAM
        </th>
        <th>
            HDD
        </th>
        <th>
            Chitietkemtheo
        </th>
        <th>
            Thongtinkhac
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ThongtinspID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SanphamID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CPU)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RAM)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HDD)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Chitietkemtheo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Thongtinkhac)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>
